package com.djl.spring.redis.util;

import com.sun.org.apache.xpath.internal.operations.String;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;

/**
 * 消息监听器
 */
@Component
public class CustomMessageListener implements MessageListener {

    @Override
    public void onMessage(Message message, byte[] pattern) {
        System.out.println("已成功收到消息："+message);
    }
}
